var sex = '男';
function person() {
 var name = '张飞';
 function student() {
 var age = 18;
 console.log(name); // 
 console.log(sex); // 
 }
 student();
//  console.log(age); // Uncaught ReferenceError: age is not defined
}
person();